package com.example.finalwork06.Service.Impl;

import com.example.finalwork06.Entity.SectorCapitalFlows;
import com.example.finalwork06.Mapper.SectorCapitalFlowsMapper;
import com.example.finalwork06.Service.SectorCapitalFlowsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SectorCapitalFlowsServiceImpl implements SectorCapitalFlowsService {
    @Autowired
    private SectorCapitalFlowsMapper sectorCapitalFlowsMapper;
    @Override
    public List<SectorCapitalFlows> selectAll() {
        List<SectorCapitalFlows> list1=sectorCapitalFlowsMapper.selectUp();
        List<SectorCapitalFlows> list2=sectorCapitalFlowsMapper.selectDown();
        list1.addAll(list2);
        return list1;
    }
}
